home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12509 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  654 b 

  1. Path: news.mixcom.com!usenet
  2. From: elja.inc@mixcom.com (Mike McWhinney)
  3. Newsgroups: comp.lang.c
  4. Subject: Please help: need to read lines in text file
  5. Date: Mon, 01 Apr 1996 14:21:44 GMT
  6. Organization: MIX Communications
  7. Message-ID: <315fe5d1.1121568@news.mixcom.com>
  8. NNTP-Posting-Host: llggll.mixcom.com
  9. X-Newsreader: Forte Agent .99d/16.182
  10.  
  11. Hello all,
  12.  
  13. I am not an especially fluent C programmer, but need a short function
  14. to read the Nth line from a given ASCII/text file.  The target
  15. platform is MS-DOS, and the compiler I have is Turbo C++, but
  16. shouldn't matter if it is portable C code.
  17.  
  18. i.e.   char *readline(char *filename, int n)
  19.  
  20. Thanks 
  21.  
  22. Mike
  23.  
  24.